package framework.multimedia;

import framework.FRDModel;
import java.sql.SQLException;

/**
 *
 * @author Lukáš Marek
 */
public interface FRDMultimediaModel extends FRDModel
{
	/**
	 * Nacte zaznam z databaze podle id
	 * @param id objektu
	 * @return zaznam
	 */
	public FRDMultimediaDBItem loadObject(int id);

	/**
	 * Ulozi objekt do databaze
	 * @param item zaznam pro ulozeni
	 * @return pocet editovanych radku v databazi
	 * @throws SQLException 
	 */
	public int saveObject(FRDMultimediaDBItem item) throws SQLException;
}
